QT       += core gui widgets

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    CtrlBarWidget.cpp \
    Show.cpp \
    VideoCtrl.cpp \
    # sonic.cpp \
    # VideoCtrl0.cpp \
    main.cpp \
    MainWindow.cpp

HEADERS += \
    CtrlBarWidget.h \
    DataCtrl.h \
    Show.h \
    VideoCtrl.h \
    # sonic.h \
    # VideoCtrl0.h \
    MainWindow.h

FORMS += \
    CtrlBarWidget.ui \
    MainWindow.ui \
    Show.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

win32 {
INCLUDEPATH += $$PWD/../projectLib/ffmpeg-4.2.1-win32-dev/include \
               $$PWD/../projectLib/SDL2/include

LIBS += -L$$PWD/../projectLib/ffmpeg-4.2.1-win32-dev/lib/ \
        -L$$PWD/../projectLib/SDL2/lib/x86 \
        -lavformat   \
        -lavcodec    \
        -lavdevice   \
        -lavfilter   \
        -lavutil     \
        -lpostproc   \
        -lswresample \
        -lswscale \
        -lSDL2

}
